-- GENERATED SPELL FOR [Shadowforge Darkcaster] --


function spell0_4848(pUnit, Event) --@Mana Burn,n/a--
pUnit:FullCastSpellOnTarget(15800,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4848', 3000, 1)
end

function spell1_4848(pUnit, Event) --@Shadow Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(9081,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4848', 3000, 1)
end

function Sorts_4848(pUnit, Event)
local choix_sorts_4848 = math.random(0, 1)
if choix_sorts_4848 == 0 then
pUnit:RegisterEvent('spell0_4848', 1, 1)
end
if choix_sorts_4848 == 1 then
pUnit:RegisterEvent('spell1_4848', 1, 1)
end
end

function mob4848_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4848', math.random(1500, 3000), 1)
end

function mob4848_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4848_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4848_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4848, 1, 'mob4848_Action')
RegisterUnitEvent(4848, 2, 'mob4848_Leave')
RegisterUnitEvent(4848, 3, 'mob4848_Kill')
RegisterUnitEvent(4848, 4, 'mob4848_Die')
